package com.omall.open.sdk.response;

import com.omall.open.sdk.OmallResponse;
import lombok.Data;

/**
 * @author 枫伦
 * @description: TODO
 * @date 2020/11/17 7:36 下午
 */
@Data
public class AuthResponse extends OmallResponse {
    private static final long serialVersionUID = 4673368321138772703L;
    private String accessToken;

    @Override
    public Class<?> getResultType() {
        return String.class;
    }

    @Override
    public void setResult(Object result) {
        if (result != null) {
            this.accessToken = (String) result;
        }
    }
}
